# Maintainer: Luca Weiss <luca@lucaweiss.eu>
pkgname=yavta
pkgver=0_git20240914
_commit="52c975e5542504ac10bed8b1d68df5c75951d202"
pkgrel=0
pkgdesc="Yet Another V4L2 Test Application"
url="https://git.ideasonboard.org/yavta.git/"
arch="all"
license="GPL-2.0-or-later"
depends="linux-headers"
makedepends="meson"
# TODO: https://git.ideasonboard.org/yavta.git doesn't provide archives
source="https://github.com/z3ntu/yavta/archive/$_commit/yavta-$_commit.tar.gz"
builddir="$srcdir/yavta-$_commit"

build() {
	abuild-meson \
		. output
	meson compile -C output
}

check() {
	meson test --no-rebuild --print-errorlogs -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
37980fb7c56d17df3aaba0a877ef1d8d2b3f15a018b50ab813e3e479cc0cba20db35ca0c0c40484a6ac4939dbff067f4bc49ae66357e564611d0aaa44fca072b  yavta-52c975e5542504ac10bed8b1d68df5c75951d202.tar.gz
"
